import request from '@/utils/request'

// 查询入库列表
export function listStoreEnter(query) {
  return request({
    url: '/sales/storeEnter/list',
    method: 'get',
    params: query
  })
}

// 查询入库详细
export function getStoreEnter(enterId) {
  return request({
    url: '/sales/storeEnter/' + enterId,
    method: 'get'
  })
}

// 新增入库
export function addStoreEnter(data) {
  return request({
    url: '/sales/storeEnter',
    method: 'post',
    data: data
  })
}

// 修改入库
export function updateStoreEnter(data) {
  return request({
    url: '/sales/storeEnter',
    method: 'put',
    data: data
  })
}

// 删除入库
export function delStoreEnter(enterId) {
  return request({
    url: '/sales/storeEnter/' + enterId,
    method: 'delete'
  })
}


// 审核入库
export function changeCheckStatus(data) {
  return request({
    url: '/sales/storeEnter/check',
    method: 'put',
    data: data
  })
}

// 审核状态 登录获取
export function checkStatus() {
  return request({
    url: '/sales/storeEnter/checkStatus',
    method: 'get',
  })
}

// 查询成品库列表
export function okStoreListSelect() {
  return request({
    url: '/sales/storeEnter/okStoreList',
    method: 'get'
  })
}

